home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
news
/
selectv1.tar
/
selectv1
/
PORTING
< prev
next >
Wrap
Text File
|
1993-09-04
|
1KB
|
39 lines
PORTING: selectnews v1.0
LAST REVISION: August 12, 1993
------------------------------
selectnews ought to compile right out of the box for all UNIX systems
containing the curses or ncurses library.
Unfortunately, the BSD version of curses does not support the
procedure 'keypad()', which allows the user to use the extended
terminal keyboard, such as arrow keys. The ncurses library is
designed to take the places of the BSD curses library, so it is
compatible with the Berkeley version of curses.
If compiling with the curses library, selectnews assumes the BSD
curses library, and comments out the 'keypad()' command. If you are
using a Berkeley-compatible version of UNIX, and you have 'keypad()'
in the curses library, you can uncomment the 'keypad()' command and
thus use the extended keyboard.
Look for the following lines in the file screen.c:
#ifdef NCURSES
keypad(stdscr,TRUE);
#endif
If you are using the Berkeley curses library, you can remove the
'ifdef' and 'endif' lines so it simply reads:
keypad(stdscr,TRUE);
This will allow you to use the extended keyboard.
selectnews has been compiled on Linux, Ultrix, and Sun OS. I see no
reason why it should not compile on all versions of UNIX.
---
Eugene Kim
eekim@husc.harvard.edu